Skip to main content
Version: Next

Custom Theme


Introduction

This guide explains how to customize themes in your application by modifying various CSS variables. These changes allow you to adjust the visual appearance of navigation menus, buttons, headers, fonts, and more, creating a tailored experience for your users.

Customizable CSS Variables

The following table outlines the available CSS variables and their effects:

VariableDefault ValueEffect
--custom-logo-pathFully qualified logo URL to replace the app logo.
--navbar-active-submenu-bg-color#145a32Changes the background color of the submenu in the navbar when clicked.
--navbar-active-submenu-font-color#ba4a00Changes the font color of the submenu in the navbar when clicked.
--navbar-menu-hover-bg-color#bb8fceChanges the background color of the main menu and submenu in the navbar when hovered.
--navbar-main-menu-active-bg-color#fad7a0Changes the background color of the main menu in the navbar when clicked.
--navbar-main-menu-active-font-color#641e16Changes the font color of the main menu in the navbar and other header elements.
--navbar-bg-color#b7950bChanges the background color of the navbar and header.
--custom-title"SampleWebsite.in"Updates the header title.
--primary-btn-font-color#e59866Changes the font color of primary buttons, such as "Submit," "Create New Role," etc.
--primary-btn-bg-color#0b5345Changes the background color of primary buttons.
--primary-btn-hover-bg-color#a9dfbfChanges the background color of primary buttons when hovered.
--secondary-btn-font-color#d6dbdfChanges the font color of secondary buttons, such as "Edit," "History," and "Undo."
--secondary-btn-bg-color#5d6d7eChanges the background color of secondary buttons.
--secondary-btn-hover-bg-color#aeb6bfChanges the background color of secondary buttons when hovered.
--default-font-color#7d3c98Changes the default font color for various components, including forms, task headings, and metrics.
--default-font-size2remSets the default font size for elements like navbar submenus and button labels.
--ff-primary#c32047Sets the primary theme color for borders, active tabs, and other key elements.
--ff-secondary#cae85aSets the secondary theme color for additional highlights and accents.

Applying the Theme

  1. Identify the CSS variables you want to customize based on the table above.
  2. Update the values in your theme JSON.
  3. Host the JSON file to file storage and configure the deployment to use this theme file.

Tip: Test your changes in different browsers and screen sizes to ensure consistency across the application.